package com.csjung.games.gamenori.shared;

import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;

import com.csjung.games.gamenori.server.SpringServiceLocator;
import com.csjung.games.gamenori.server.service.GamenoriChannelService;

/**
 * Makes requests of the Google AppEngine UserService.
 */
@Service(value=GamenoriChannelService.class, locator=SpringServiceLocator.class )
public interface ChannelServiceRequest extends RequestContext {
  public Request<ChannelProxy> createChannel(String channelType, String userId);
  
  public Request<ChannelProxy> requestChat(String contactUserId);
  
  public Request<ChannelProxy> getChannel(String channelId);
  
  public Request<String> sendMsgToChannel(ChannelProxy channelProxy, String message);
}
